<template>
	<view class="container">
	  <view class="help cont-box b-f" v-for="(item,index) in list" :key="index">
	    <view>
	      <text class="h4">{{item.title}}</text>
	    </view>
	    <view>
	      <text class="p">{{item.content}}</text>
	    </view>
	  </view>
	</view>
</template>

<script>
export default {
	data() {
		return {
			list: []
		};
	},
	onShow() {
		this.getHelpList();
	},
	methods: {
		/**
		 * 获取帮助列表
		 */
		getHelpList() {
			this.$get(this.$api.getWxappHelp, {}, res => {
				this.list = res.data.list;
			});
		}
	}
};
</script>

<style>
.help {
	border-bottom: 1px solid #f6f6f9;
}
.help .h4 {
	font-size: 32rpx;
	color: #333;
	margin-bottom: 5px;
}
.help .p {
	font-size: 26rpx;
	color: #666;
}
</style>
